package com.fanqwz.kotlinmvvm.di.module

import android.arch.lifecycle.LifecycleOwner
import com.fanqwz.kotlinmvvm.di.scope.PerFragment
import com.fanqwz.kotlinmvvm.ui.fragment.BaseFragment
import dagger.Binds
import dagger.Module
import dagger.Provides

/**
 * Created by fanqwz on 2017/10/31.
 */
@Module
abstract class BaseFragmentModule<T : BaseFragment> {
    @PerFragment
    @Binds
    abstract fun provideLifeCycleOwner(fragment: T): LifecycleOwner
}